package so.hands.xam.webserver; 


import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

/** 
 * @Title: AnalysisDom.java  
 * @Package so.hands.xam.webserver 
 * @Description: TODO(添加描述) 
 * @author 朱晓峰 
 * @date 2012-11-4 下午02:20:42 
 * @version V1.0 
 */
@SuppressWarnings("serial")
public class AnalysisDomAction extends ActionSupport{
	private String domStr;
	
	public String execute(){
		
		String phoneNo = ServletActionContext.getRequest().getParameter("phoneNo");
		if(phoneNo!=null){
			try {
				phoneNo=URLDecoder.decode(phoneNo,"utf-8");
			} catch (UnsupportedEncodingException e) {
				  
				        // TODO Auto-generated catch block  
				        e.printStackTrace();  
				    
			}
		}
		System.out.print(phoneNo);
//		try {
//		    String jsonReturn = "{customState: 'hasCustomized'}";
//			ServletActionContext.getResponse().setContentType("application/json; charset=UTF-8");
//			ServletActionContext.getResponse().getWriter().print(jsonReturn);
//		} catch (IOException e) {
//			// TODO Auto-generated catch block  
//			e.printStackTrace();
//		}
		return null;	
	}
}